package com.hexinfo.dmpro.dev.data.transfer.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

@AllArgsConstructor
public enum DevDataExportModelEnum {

    source("按源导出", "source"),

    database("按库导出", "database"),

    table("按表导出", "table"),

    custom("自定义导出", "custom"),;

    @Getter
    private final String name;

    @Getter
    private final String value;

    public static List<String> getValues() {
        return Arrays.stream(DevDataExportModelEnum.values()).map(DevDataExportModelEnum::getValue).collect(Collectors.toList());
    }
}
